package org.my.workflow;

import org.my.workflow.persistence.WorkflowStatus;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
public class WorkflowStatusException extends WorkflowException {

    public WorkflowStatus status;

    public WorkflowStatusException(WorkflowStatus status, String message) {
        super(message);
        this.status = status;
    }

    public String getMessage() {
        return "STATUS: " + status + ", " + super.getMessage();
    }
}
